package com.atguigu.responsibilitychain;

public abstract class Operator {
    protected Operator operator;
    protected String name;

    public Operator(String name) {
        this.name = name;
    }

    public void setOperator(Operator operator) {
        this.operator = operator;
    }

    public abstract void processRequest(PurchaseRequest purchaseRequest);
}
